home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / var / lib / dpkg / info / grub-common.preinst < prev    next >
Text File  |  2009-10-29  |  770b  |  32 lines

  1. #!/bin/bash -e
  2.  
  3. case "$1" in
  4.   install|upgrade)
  5.  
  6.     if [ -n "$2" ] && dpkg --compare-versions $2 lt 1.96+20090521-1 ; then
  7.     if [ -f /etc/grub.d/10_hurd ] && [[ `dpkg --print-architecture` != hurd-* ]] ; then
  8.       rm /etc/grub.d/10_hurd
  9.     fi
  10.     if [ -f /etc/grub.d/10_freebsd ] && [[ `dpkg --print-architecture` != kfreebsd-* ]] ; then
  11.        rm /etc/grub.d/10_freebsd
  12.     fi
  13.     if [ -f /etc/grub.d/10_linux ] && ( [[ `dpkg --print-architecture` = hurd-* ]] || [[ `dpkg --print-architecture` = kfreebsd-* ]] ) ; then
  14.        rm /etc/grub.d/10_linux
  15.     fi
  16.     fi
  17.   ;;
  18.   abort-upgrade)
  19.   ;;
  20.   *)
  21.     echo "postinst called with unknown argument \`$1'" >&2
  22.     exit 1
  23.   ;;
  24. esac
  25.  
  26. # dh_installdeb will replace this with shell code automatically
  27. # generated by other debhelper scripts.
  28.  
  29.  
  30.  
  31. exit 0
  32.